﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Slide.ascx.cs" Inherits="module_Slide" %>    
<%
    ArticleBusiness article = new ArticleBusiness();
    PanelBusiness p = new PanelBusiness();
    PanelesEntities entity = p.getItem(ID);
    int chanel_id = Helper.getQuery("cid");
    if (chanel_id == 0) { chanel_id = entity._channelID; }
    ArrayList items = article.viewImage();
    if (items != null)
    {
        ArticlesEntities item = null;
        Response.Write("<ul id=\"scroller\">");
        for (int i = 0; i < items.Count; i++)
        {
            item = (ArticlesEntities)items[i];
            Response.Write("<li><a href=\"Default.aspx?url=module/tmp.ascx&aid=" + item._articlesID.ToString() + "&cid=" + chanel_id.ToString() + "&pid="+ID.ToString()+" \">");
            
            Response.Write("<img src=\"/Building/"+item._image.Substring(1) +"\" />" + "</a></li>");
        }
        Response.Write("</ul>");
    }
     %>